<%@ page import="cn.estore.dao.ProductDao" %>
<%@ page import="java.util.List" %>
<%@ page import="cn.estore.entity.ProductEntity" %><%--
  Created by IntelliJ IDEA.
  User: User
  Date: 2023/12/5
  Time: 8:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="leftParts/findProductsByName.jsp" %>
<%@ include file="leftParts/login.jsp" %>
<html>
<head>
    <title>Title</title>
</head>
<script language="JavaScript">
    function checkEmpty(form) {//form是要进行验证表单名称
        for (i = 0; i < form.length; i++) {
            if (form.elements[i].value === "") {//对emements对象中每个子元素进行判断
                alert("表单不能为空");
                return false;
            }
        }
        console.log(form.password.value + "------------")
        console.log(form.passwordOne.value + "==================")
        if (form.password.value != null || form.password.value !== "") {
            if (form.password.value != form.passwordOne.value) {
                alert("您输入两次密码不一致，请重新输入")
                return false;
            } else {
                return true;
            }
        }
    }

</script>
<body>
<table width="100%" bgcolor="#9fff" border="2" align="center" cell padding="0" cellspacing="0">
    <tr>
        <td width="30%" valign="top">
            <br>
            ......
        </td>
    </tr>

</table>
</body>
</html>
